<?php
/**
 * Created by PhpStorm.
 * User: Sky
 * Date: 2017/8/1
 * Time: 上午11:41
 */
?>
<input type="hidden" id="hiddenId" value="<?= $id ?>">
<div class="form-horizontal">
    <div class="form-group">
        <label class="col-lg-3 col-sm-3 control-label">广告行业类型名称：</label>
        <div class="col-lg-9">
            <input type="text" class="form-control" autofocus id="inputName"
                <?php
                if ($item != null) {
                    echo "value='" . $item['name'] . "'";
                } ?>
            />
        </div>
    </div>
    <div class="form-group">
        <label class="col-lg-3 col-sm-3 control-label">是否特殊行业：</label>
        <div class="col-lg-9">
            <select class="form-control" id="inputIsSpecial">
                <option value="0"
                    <?php
                    if ($item != null && $item['is_special'] == 1) {
                        echo '';
                    } else {
                        echo 'selected';
                    } ?>
                >否
                </option>
                <option value="1"
                    <?php
                    if ($item != null && $item['is_special'] == 1) {
                        echo 'selected';
                    } ?>
                >是
                </option>
            </select>
        </div>
    </div>
</div>